package com.asg.guesswhat.screens;

import com.asg.guesswhat.Assets;
import com.badlogic.gdx.Game;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL10;
import com.badlogic.gdx.graphics.GLCommon;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.math.Rectangle;

public class SplashScreen extends GWScreen {
	Game game;
	OrthographicCamera guiCam;
	SpriteBatch batcher;
	Rectangle newGameBounds;

	public SplashScreen(Game game) {
		super(game);
		// TODO Auto-generated constructor stub
	}


	@Override
	public void render(float delta) {
		GLCommon gl = Gdx.gl;
		gl.glClearColor(1, 0, 0, 1);
		gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
		guiCam.update();
		batcher.setProjectionMatrix(guiCam.combined);

		batcher.disableBlending();
		batcher.begin();
		batcher.draw(Assets.splashScreenRegion, 0, 0, 320, 480);
		batcher.end();		
	}
}
